# (5)
# for i in range(2,1001):
#     s=0;
#     for j in range(1,i):
#         if(i%j==0):
#             s+=j
#     if(s==i):
#         print("it's a perfect numbur:{}".format(i))